@import "@/style/imports";

page {
  width: 100%;
  height: 100%;
}

.editShare {
  width: 100%;
  height: 100%;
  .textarea {
    background: #fff;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    height: 300px;
  }
  .textData {
    display: flex;
    padding: 10px 20px;
    align-items: center;
    background: #fff;
    border-top: 2px solid #efefef;
    .title {
      margin-top: 10px;
      color: #666;
      margin-right: 10px;
      flex-shrink: 0;
    }
    .insertData {
      display: flex;
      flex-wrap: wrap;
      .item {
        padding: 10px 30px;
        border-radius: 30px;
        color: #333;
        background: #efefef;
        margin-right: 10px;
        margin-top: 10px;
        font-size: 26px;
        &.disabled {
          color: #999;
        }
        &:last-child {
          margin-right: 0;
        }
      }
    }
  }
  .images {
    margin-top: 30px;
    display: flex;
    padding: 0 20px;
    // justify-content: space-around;
    flex-wrap: wrap;
    .item {
      width: 33%;
      flex-shrink: 0;
      padding: 5px;
      position: relative;
      .icon-close {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba($color: #000000, $alpha: 0.5);
        color: #fff;
        font-size: 36px;
      }
      .img {
        width: 100%;
        box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3);
      }
    }
  }
  .btns {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 50px;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    background: #fff;
    padding-bottom: 20px;
    .btn {
      padding: 20px 50px;
      width: 45%;
      text-align: center;
      color: #fff;
      border-radius: 10px;
    }
  }
  .canvas {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: -100%;
  }
  .successModal {
    width: 100%;
    background: #fff;
    .at-modal__content {
      max-height: 80%;
    }
    .tip {
      display: flex;
      padding: 10px 60px;
      align-items: center;
      color: #666;
      font-size: 28px;
      .icon-check {
        margin-right: 30px;
        font-size: 36px;
        color: #1aad19;
      }
    }
    .sharetip {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 50px 0;
      .text {
        margin: 0 20px;
        font-size: 36px;
      }
      .line {
        width: 20%;
        border-top: 2px solid #efefef;
      }
    }
    .steps {
      display: flex;
      margin-bottom: 30px;
      .item {
        flex: auto;
        text-align: center;
        position: relative;
        .title {
          font-size: 24px;
          margin-bottom: 15px;
        }
        .stepIcon {
          width: 100%;
          position: relative;
          .num {
            width: 35px;
            height: 35px;
            font-size: 20px;
            line-height: 35px;
            text-align: center;
            margin: 0 auto;
            color: red;
            border-radius: 100%;
            border: 2px solid red;
            position: relative;
            background: #fff;
            z-index: 99;
          }
          &::after{
            content: '';
            width: 50%;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            border-top: 2px solid red;
          }
          &.second {
            &::after{
              content: '';
              width: 100%;
              position: absolute;
              right: 0;
              top: 50%;
              transform: translateY(-50%);
              border-top: 2px solid red;
            }
          }
        }
        &:last-child {
          .stepIcon {
            &::after {
              left: 0;
            }
          }
        }
      }
    }
    .btn {
      color: #666 !important;
    }
  }
}
